<?php 
	class M_cong extends CI_Model{
		protected $_table = "bangcong";
		function __construct(){
			parent :: __construct();
			$this->load->helper('url');
			$this->load->database();
		}
		
		public function my_info($userid){
			$this->db->where('id',$userid);
			return $this->db->get($this->_table)->result_array();
		}
		public function get_id($acc){
			$this->db->where('account',$acc);			
			return $this->db->get($this->_table)->result_array();
			
		}		
		
		function count_all(){ 
            return $this->db->count_all($this->_table); 
        } 

	}
?>